home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmTranslateKey.z / XmTranslateKey
Encoding:
Text File  |  2003-11-18  |  3.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmTTTTrrrraaaannnnssssllllaaaatttteeeeKKKKeeeeyyyy((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV        XXXXmmmmTTTTrrrraaaannnnssssllllaaaatttteeeeKKKKeeeeyyyy((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_T_r_a_n_s_l_a_t_e_K_e_y - The default keycode-to-keysym translator
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.       #include <Xm/Xm.h>
  13.  
  14.       void XmTranslateKey (ddddiiiissssppppllllaaaayyyy,,,,    kkkkeeeeyyyyccccooooddddeeee,,,, mmmmooooddddiiiiffffiiiieeeerrrrssss,,,, mmmmooooddddiiiiffffiiiieeeerrrrssss____rrrreeeettttuuuurrrrnnnn,,,, kkkkeeeeyyyyssssyyyymmmm____rrrreeeettttuuuurrrrnnnn)
  15.            _D_i_s_p_l_a_y     *ddddiiiissssppppllllaaaayyyy;
  16.            _K_e_y_C_o_d_e     kkkkeeeeyyyyccccooooddddeeee;
  17.            _M_o_d_i_f_i_e_r_s mmmmooooddddiiiiffffiiiieeeerrrrssss;
  18.            _M_o_d_i_f_i_e_r_s *mmmmooooddddiiiiffffiiiieeeerrrrssss____rrrreeeettttuuuurrrrnnnn;
  19.            _K_e_y_S_y_m     *kkkkeeeeyyyyssssyyyymmmm____rrrreeeettttuuuurrrrnnnn;
  20.  
  21.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.       _X_m_T_r_a_n_s_l_a_t_e_K_e_y is the    default    _X_t_K_e_y_P_r_o_c translation
  23.       procedure for    Motif applications.  The function takes    a
  24.       keycode and modifiers    and returns the    corresponding keysym.
  25.  
  26.       _X_m_T_r_a_n_s_l_a_t_e_K_e_y serves    two main purposes: new translators
  27.       with expanded    functionality can call it to get the default
  28.       Motif    keycode-to-keysym translation in addition to whatever
  29.       they add, and    so that    the default translator can be
  30.       reinstalled.    This function enables keysyms defined by the
  31.       Motif    virtual    bindings to be used when an application
  32.       requires its own XtKeyProc to    be installed.
  33.  
  34.       ddddiiiissssppppllllaaaayyyy
  35.            Specifies the display that the keycode is from
  36.  
  37.       kkkkeeeeyyyyccccooooddddeeee
  38.            Specifies the keycode to    translate
  39.  
  40.       mmmmooooddddiiiiffffiiiieeeerrrrssss
  41.            Specifies the modifier keys to be applied to the
  42.            keycode
  43.  
  44.       mmmmooooddddiiiiffffiiiieeeerrrrssss____rrrreeeettttuuuurrrrnnnn
  45.            Specifies a mask    of the modifier    keys actually used to
  46.            generate    the keysym (an AND of mmmmooooddddiiiiffffiiiieeeerrrrssss    and any
  47.            default modifiers applied by the    currently registered
  48.            translator)
  49.  
  50.       kkkkeeeeyyyyssssyyyymmmm____rrrreeeettttuuuurrrrnnnn
  51.            Specifies a pointer to the resulting keysym
  52.  
  53.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  54.       _V_i_r_t_u_a_l_B_i_n_d_i_n_g_s(_3_X).
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.